import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'iamgeqr_flutter_plugin_platform_interface.dart';

/// An implementation of [IamgeqrFlutterPluginPlatform] that uses method channels.
class MethodChannelIamgeqrFlutterPlugin extends IamgeqrFlutterPluginPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('iamgeqr_flutter_plugin');

  @override
  Future<String?> getPlatformVersion() async {
    final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
    return version;
  }

  //imageScanQr
  @override
  Future<String?> imageScanQr() async {
    final data = await methodChannel.invokeMethod<String>('imageScanQr');
    return data;
  }
}
